
package com.elite.groovy.callback

import com.elite.groovy.kh.DHAESUtil
import com.elite.groovy.util.EliteBean
import com.elite.groovy.util.Util
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory

import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
/**
 * @author ThinkPad
 *
 */
class aesutilEncryptDis implements ServiceBackInvoke {
    private static final Log log=LogFactory.getLog(aesutilEncryptDis.class);

    String doCallBack(EliteBean eliteBean, HttpServletRequest request, HttpServletResponse response) {

        def body1= Util.getRequestBody(request,"utf-8");
        log.debug("body1----------------:"+body1);
        def aesmi2=DHAESUtil.encrypt(body1,"jdfg98abnhgwed4g");
        log.debug("原始数据："+body1)
        log.debug("加密后的数据是："+aesmi2);

        return aesmi2;
    }


}
